package cn.edu.xust.service;

import cn.edu.xust.entity.SysUserEntity;
import cn.edu.xust.entity.SysUserhotelEntity;
import cn.edu.xust.Ro.HotelPCRo;
import cn.edu.xust.Ro.chotelRo;
import cn.edu.xust.util.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author ufo
 * @email 2575829997@qq.com
 * @date 2022-09-06 17:32:09
 */
public interface SysUserhotelService extends IService<SysUserhotelEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<SysUserhotelEntity> getByUid(Integer uid);


    /**
     * 获取酒店以及酒店中文名
     * @return
     */
    List<chotelRo> getHotelListByNP(SysUserEntity userEntity);


    /**
     * 覆盖修改某个uid的hotels
     * @param uid
     * @param checked_hotel
     * @return
     */
    boolean resetByuid(Integer uid, Integer gid, List<Integer> checked_hotel);


    boolean removeByUid(Integer uid);


    List<HotelPCRo> getHotelListByNP2(SysUserEntity sysUserEntity);

    List<SysUserhotelEntity> getByUids(List<Integer> bindsysids);

}

